package b.sj.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017-7-5 0005.
 */
@Entity
@Table(name = "SJ_ZG", schema = "JCXT", catalog = "")
public class SjZgEntity {
    private String zgry;

    @Basic
    @Column(name = "ZGRY", nullable = true, length = 40)
    public String getZgry() {
        return zgry;
    }

    public void setZgry(String zgry) {
        this.zgry = zgry;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SjZgEntity that = (SjZgEntity) o;

        if (zgry != null ? !zgry.equals(that.zgry) : that.zgry != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return zgry != null ? zgry.hashCode() : 0;
    }
}
